Cost accounting is a type of managerial accounting that focuses on capturing a company's total production costs by assessing the variable and fixed costs associated with the production of goods or services. It helps businesses understand their costs, set budgets, and make informed financial decisions.